<div class="modal-header">
    <h3 class="modal-title">备注搜索</h3>
    <i class="fa fa-close fa-2x" ng-click="cancel()"></i>
</div>
<div class="modal-body">
    <div class="meta-section" style="margin:0 0 20px 0;">
        <div class="meta-section-header" style="position:relative">
            <h4 class="meta-section-header-title">搜索：</h4>
            <div class="meta-section-header-search-lg">
                <div class="input-group">
                    <input type="text" class="form-control" ng-model="listCtrl.searchParams.value" ng-keydown="listCtrl.searchParams.search($event)">
                    <span class="input-group-btn">
                      <button class="btn btn-info" type="button" ng-click="changeUrl()">搜索</button>
                    </span>
                </div>
            </div>
        </div>
    </div>
    <div class="meta-section" style="margin:0;">
        <div class="meta-section-header">
            <h4 class="meta-section-header-title">数据：共 {{listCtrl.tableParams.total}} 条备注</h4>
        </div>
        <div class="meta-section-container">
            <div class="meta-secondary-section meta-last">
              <div class="meta-secondary-section-content">
                  <div ng-repeat="element in listCtrl.tableParams.data track by $index" class="meta-list-item">
                      <div class="meta-input-section">
                          <span class="meta-input-section-title" style="width:75px;">{{$index + 1 + listCtrl.tableParams.pageNumber * (listCtrl.tableParams.currentPage-1)}}. 用户：</span>
                          <div class="meta-input-section-control" style="padding-left:75px;">
                              <div class="meta-text">{{element.user.name}}</div>
                          </div>
                          <div class="meta-input-section-btns">
                              <a ng-if="element.type=='需求／合作' && element.isCoop==false" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.demand.user.detail({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='需求／合作' && element.isCoop==true" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.demand.cooperation.detail({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='技术／解决' && element.isCoop==false" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.technology.technology.detail({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='技术／解决' && element.isCoop==true" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.technology.solution.detail({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='人才'" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.research.space.detail({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='用户'" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.user.user.detail({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='进程'" target="_blank" class="btn btn-xs btn-success meta-btn" ui-sref="meta.permission.project.process.detail.step1({id: element.targetId})">查看</a>
                              <a ng-if="element.type=='无类型'" class="btn btn-xs btn-success meta-btn" disabled>查看</a>
                          </div>
                      </div>
                      <div class="meta-input-section meta-last">
                          <span class="meta-input-section-title" ng-class="{
                            'meta-list-header-1': $index + 1 + listCtrl.tableParams.pageNumber * (listCtrl.tableParams.currentPage-1)>9,
                            'meta-list-header-2': $index + 1 + listCtrl.tableParams.pageNumber * (listCtrl.tableParams.currentPage-1)>99}">类型：</span>
                          <div class="meta-input-section-control" style="padding-left:75px;">
                            <span class="meta-status meta-adjust-status" ng-class="{
                              'meta-start-status': element.type=='无类型',
      					          		'meta-process1-status': element.type=='需求／合作',
      					          		'meta-process2-status': element.type=='技术／解决',
      					          		'meta-process3-status': element.type=='人才',
      					          		'meta-process4-status': element.type=='用户',
      					          		'meta-process5-status': element.type=='进程'}">
                                {{element.type}}
                            </span>
                          </div>
                      </div>
                      <div class="meta-input-section meta-last">
                          <span class="meta-input-section-title" ng-class="{
                            'meta-list-header-1': $index + 1 + listCtrl.tableParams.pageNumber * (listCtrl.tableParams.currentPage-1)>9,
                            'meta-list-header-2': $index + 1 + listCtrl.tableParams.pageNumber * (listCtrl.tableParams.currentPage-1)>99}">内容：</span>
                          <div class="meta-input-section-control" style="padding-left:75px;">
                              <div class="meta-text" ng-bind-html="element.content"></div>
                          </div>
                      </div>
                  </div>
              </div>
            </div>
            <div class="meta-page">
                <uib-pagination boundary-links="true" total-items="listCtrl.tableParams.total" ng-model="listCtrl.tableParams.currentPage" ng-change="changeUrl()" class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="首页" last-text="尾页" items-per-page="5"
                    max-size="10"></uib-pagination>
            </div>
        </div>
    </div>
</div>
